package code.springboot.sharding.mapper;

import code.springboot.sharding.dataobject.OrderDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface OrderMapper {

    OrderDO selectById(@Param("id") Long id,@Param("userId") Integer userId);

    List<OrderDO> selectListByUserId(@Param("userId") Integer userId);

    void insert(OrderDO order);
}
